import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useComponent = defineStore('component', () => {}, {
  // 数据持久化
  persist: {
    storage: {
      setItem(key, value) {
        uni.setStorageSync(key, value)
      },
      getItem(key) {
        return uni.getStorageSync(key)
      },
    },
  },
})
